<div data-ng-controller="GroupEditController" style="position:static; background: #ececec;" >
    <div class="address-top-bar" style="height:56px; border-bottom: 2px solid #ccc;">
		<div class="turnBackbtn pull-left font-black2" data-ng-click="goBack()" style="margin-top: 10px;margin-left:16px;">返回</div>  
		<div style="padding-left: 13px;"></div>    
    </div>
	<div class="clearfix marginLeft0 marginRight35" style="padding-top:23px;">
		<div class="form paddingLeft30">
			<div class="form-group font-black1" style="margin-left: 0px;">
	         	<label>群组头像<small>大图片建议尺寸（500像素*500像素）</small></label>
	        	<div data-fc-image-crop data-url="{{ groupPic }}" data-must-select="true"></div>
			</div>
			<div class="form-group font-black1">
	             <label><em>*</em> 群名称</label>
	             <input type="text" data-ng-model="group.groupName" required class="form-control" maxlength="50" style="width:320px;"/>
			</div>
			<div class="form-group" style="clear:both;">
                <div class="pull-right">
	             	<button data-fc-org-user-picker data-type="user" title="新增成员" data-on-select="addUsers($chosenList)" class="btn btn-default ">新增</button>
	                <button data-ng-click="deleteUsers()" class="btn btn-default" style="padding-left:8px;">删除</button>
                </div>
                <span style="vertical-align:middle;">成员数:({{totalUsers}}人)</span>
			</div>
			<div class="form-group table-maxh" style="padding-top:8px;">
	           	<table class="table table-bordered table-striped table-hover">
		           	<thead>
		                <tr>
		                    <th class="text-center" style="width: 40px;"><input type="checkbox" data-ng-checked="isSelectAll" data-ng-click="toggleSelectAll()" style="cursor: pointer;"></th>
		                    <th>姓名</th>
		                    <th>所属组织</th>
		                </tr>
	                </thead>
                    <tbody>
		                <tr data-ng-repeat="userVo in relateGroups track by userVo.userId" data-ng-class="{'eeeColor':selectedUserIdList[userVo.userId]}">
		                    <td class="text-center" data-ng-click="toggleUser(userVo.userId)"><input type="checkbox" data-ng-checked="selectedUserIdList[userVo.userId]" ></td>
		                    <td data-ng-click="toggleUser(userVo.userId)">{{userVo.userName}}</td>
		                    <td data-ng-click="toggleUser(userVo.userId)">{{userVo.orgName}}</td>
		                </tr>
	                </tbody>
	            </table>
			</div>
			<div class="form-group">
	             <label>创建人：</label>{{group.createUserName}}
			</div>
			<div class="form-group text-left" style="padding-top:18px;">
	            <button data-ng-click="saveGroup()" class="btn btn-primary">保存</button>
	            <button data-ng-click="goBack()" class="btn btn-default">取消</button>
			</div>
		</div>
	</div>
</div>